package com.stylefeng.guns.modular.platform.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 记录平台小程序信息
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-24
 */
@TableName("platform_small_info")
public class SmallInfo extends Model<SmallInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键，自增
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 小程序分类：如，金融理财，电商购物等(多个以英文逗号隔开)
	 */
	@TableField("type")
	private String type;
	/**
	 * 小程序名称
	 */
	@TableField("name")
	private String name;
	/**
	 * 图片地址
	 */
	@TableField("url")
	private String url;
	/**
	 * 审核状态
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 小程序二维码url
	 */
	@TableField("qr_code")
	private String qrCode;
	/**
	 * 修改时间
	 */
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 爬取数据时间
	 */
	@TableField("scrapy_time")
	private Date scrapyTime;

	/**
	 * 备注
	 */
	private String remarks;
	/**
	 * 手机号码
	 */
	private String mobile;
	/**
	 * 标签
	 */
	private String label;
	
	/**
	 * 标签
	 */
	@TableField("appSecret")
	private String appSecret;
	
	
	/**
	 * 标签
	 */
	@TableField("appid")
	private String appid;

	/**
	 * 小程序原始id
	 */
	@TableField("ghId")
	private String ghId;
	
	/**
	 * 标签
	 */
	@TableField(exist=false)
	private String code;

	public String getGhId() {
		return ghId;
	}

	public void setGhId(String ghId) {
		this.ghId = ghId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getScrapyTime() {
		return scrapyTime;
	}

	public void setScrapyTime(Date scrapyTime) {
		this.scrapyTime = scrapyTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "SmallInfo{" + "id=" + id + ", type=" + type + ", name=" + name + ", qrCode=" + qrCode + ", updateTime="
				+ updateTime + ", scrapyTime=" + scrapyTime + "}";
	}
}
